<%@page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@page import="com.tz.bean.Admin"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>
<!DOCTYPE HTML>
<html>
  <head>
	<!--声明当前页面的编码集：charset=gbk,gb2312(中文编码)，utf-8国际编码-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<!--当前页面的三要素-->
	<title>陇上无限学——陇南情Malron</title>
	<meta name="Keywords" content="关键词,关键词">
	<meta name="description" content="">
	<link rel="icon" href="${basePath}/resources/images/tmtitle.png">
	<link rel="icon" href="${basePath}/resources/images/tmtitle.png" type="image/x-icon" />
	<link rel="stylesheet" href="${basePath}/resources/css/layout.css"/>
	<!-- 自定义查询函数 -->
	<script type="text/javascript" src="${basePath}/resources/js/search.js"></script>
	<%@include file="/WEB-INF/pages/common/common.jsp" %>
 </head>
 <body>
	<div class="wrap">
		<%@include file="/WEB-INF/pages/common/menu.jsp"%>
		<div class="content">
			<%@include file="/WEB-INF/pages/common/header.jsp"%>
			<div class="cnt">
				<div class="tabwrap"><div id="box"></div></div>
			</div>
		</div>
	</div>

	<script type="text/javascript">
	var arr = new Array(
		"欢迎【${session_adm_user_username}】访问我的网站！",
		"这里是我的后台首页。",
		"只能是管理员才能进入到这里，否则您已涉权。",
		"合法使用请联系：18719742536",
		"谢谢配合！");
	var speed = 100;
	var wordbox = document.getElementById("box");
	var c = "",index = 0,pos = 0;
	var strLen = arr[0].length;
	var tlen = arr.length; 
	var row = 0;
	function appendWord(){
		c='';
		row = Math.max(0,index-tlen);
		while(row < index){
	   		c += arr[row++] + '\r\n';
		}
		wordbox.innerText = c+arr[index].slice(0,pos)+"_"; 
		if(pos==strLen){
			pos = 0;
			c = arr[index]+"\r\n";
			index ++;			
			if(index < tlen){
				strLen = arr[index].length;
				setTimeout(appendWord,speed);
			}else{
				wordbox.innerText = wordbox.innerText.replace("_","");
			}
		}else{
			pos++;
			setTimeout(appendWord,speed);
		}
	}
	appendWord();
	</script>
 </body>
</html>